import request from '@/utils/request'

const api_name = '/inandout'

export default {
  showsellw(data) {
    return request({
      url: `${api_name}/showsellw`,
      method: 'get',
      params: data
    })
  },
  showselly(data) {
    return request({
      url: `${api_name}/showselly`,
      method: 'get',
      params: data
    })
  },
  outbound(data) {
    return request({
      url: `${api_name}/out`,
      method: 'put',
      params: data
    })
  },
  selectout(data) {
    return request({
      url: `${api_name}/selectout`,
      method: 'get',
      params: data
    })
  },
  selectAllWarehouse(data) {
    return request({
      url: `warehouse/allwarehouse`,
      method: 'post',
      data: data
    })
  },
  selectStockProduct(data) {
    return request({
      url: `stock/allproduct`,
      method: 'post',
      data: data
    })
  },
  updateStock(data) {
    return request({
      url: `${api_name}/updateStock`,
      method: 'post',
      data: data
    })
  },
  updateOrderStatus(data) {
    return request({
      url: `${api_name}/updateOrderStatus`,
      method: 'post',
      data: data
    })
  }
}
